<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>XML source view</title><link rel="stylesheet" type="text/css" href="../xmlverbatim.css" /></head><body class="xmlverb-default"><tt>
<!-- converted by xmlverbatim.xsl 1.1, (c) O. Becker -->
<div xmlns:xd="http://www.pnp-software.com/XSLTdoc" class="xmlverb-default">&lt;!--<span class="xmlverb-comment"><br />
   XML to HTML Verbatim Formatter with Syntax Highlighting<br />
   Version 1.1<br />
   LGPL (c) Oliver Becker, 2002-08-22<br />
   obecker@informatik.hu-berlin.de<br />
   Contributors: Doug Dicks, added auto-indent (parameter indent-elements)<br />
                 for pretty-print<br />
</span>--&gt;<br />
&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e2">stylesheet</a></span><span class="xmlverb-ns-name"> xmlns:xd</span>="<span class="xmlverb-ns-uri">http://www.pnp-software.com/XSLTdoc</span>"<span class="xmlverb-ns-name"> xmlns:xsl</span>="<span class="xmlverb-ns-uri">http://www.w3.org/1999/XSL/Transform</span>"<span class="xmlverb-ns-name"> xmlns:verb</span>="<span class="xmlverb-ns-uri">http://informatik.hu-berlin.de/xmlverbatim</span>" <span class="xmlverb-attr-name">version</span>="<span class="xmlverb-attr-content">1.0</span>" <span class="xmlverb-attr-name">exclude-result-prefixes</span>="<span class="xmlverb-attr-content">verb</span>"&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e4">output</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">xhtml</span>" <span class="xmlverb-attr-name">omit-xml-declaration</span>="<span class="xmlverb-attr-content">no</span>" <span class="xmlverb-attr-name">method</span>="<span class="xmlverb-attr-content">xhtml</span>" <span class="xmlverb-attr-name">doctype-public</span>="<span class="xmlverb-attr-content">-//W3C//DTD XHTML 1.0 Transitional//EN</span>" <span class="xmlverb-attr-name">doctype-system</span>="<span class="xmlverb-attr-content">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span>" <span class="xmlverb-attr-name">indent</span>="<span class="xmlverb-attr-content">no</span>" <span class="xmlverb-attr-name">encoding</span>="<span class="xmlverb-attr-content">UTF-8</span>" /&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e6">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">false()</span>" /&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> root </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e10">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">/</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e12">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e15">comment</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e17">text</a></span>&gt;<span class="xmlverb-text"> converted by xmlverbatim.xsl 1.1, (c) O. Becker </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">comment</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e21">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e24">div</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-default</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e26">apply-templates</a></span> <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e28">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-elements</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">apply-templates</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">div</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e32">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> wrapper </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e39">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">verb:wrapper</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e41">apply-templates</a></span> <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e43">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-elements</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">apply-templates</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e47">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">verb:wrapper</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e49">apply-templates</a></span> <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e51">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-elements</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">apply-templates</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
  <br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e55">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">*</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e57">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">false()</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e59">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">''</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e61">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-increment</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'   '</span>" /&gt;<span class="xmlverb-text"> <br />
     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e63">choose</a></span>&gt;<span class="xmlverb-text"><br />
       </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e65">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">self::xd:doc</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e67">div</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xd</span>"&gt;<span class="xmlverb-text"><br />
           </span>&lt;!--<span class="xmlverb-comment"> Fix indentation (dublicate, because indentation needs to be inside the div tag) </span>--&gt;<span class="xmlverb-text"><br />
           </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e71">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">translate(preceding-sibling::text()[last()],' ',' ')</span>" /&gt;<span class="xmlverb-text"><br />
           </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e73">apply-templates</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">self::*</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb_1</span>"&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e75">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-elements</span>" /&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e77">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">concat($indent, $indent-increment)</span>" /&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e79">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-increment</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-increment</span>" /&gt;<span class="xmlverb-text"><br />
           </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">apply-templates</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">div</span>&gt;<span class="xmlverb-text"><br />
       </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
       </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e84">otherwise</a></span>&gt;&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e85">apply-templates</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">self::*</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb_1</span>"&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e87">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-elements</span>" /&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e89">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">concat($indent, $indent-increment)</span>" /&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e91">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-increment</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-increment</span>" /&gt;<span class="xmlverb-text"><br />
           </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">apply-templates</span>&gt;&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
     </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> element nodes </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e98">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">*</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb_1</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e100">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">false()</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e102">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">''</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e104">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-increment</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'   '</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e106">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">$indent-elements</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e108">br</a></span> /&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e110">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e113">text</a></span>&gt;<span class="xmlverb-text">&amp;lt;</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e117">variable</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">ns-prefix</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">substring-before(name(),':')</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e119">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">$ns-prefix != ''</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e121">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-element-nsprefix</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e123">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$ns-prefix</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e126">text</a></span>&gt;<span class="xmlverb-text">:</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e130">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-element-name</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e132">a</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">{generate-id(.)}</span>"&gt;&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e133">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">local-name()</span>" /&gt;&lt;/<span class="xmlverb-element-name">a</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e136">variable</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">pns</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">../namespace::*</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e138">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">$pns[name()=''] and not(namespace::*[name()=''])</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e140">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-ns-name</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e142">text</a></span>&gt;<span class="xmlverb-text"> xmlns</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e146">text</a></span>&gt;<span class="xmlverb-text">=""</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e150">for-each</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">namespace::*</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e152">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">not($pns[name()=name(current()) and .=current()])</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e154">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">xmlverb-ns</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">for-each</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e159">for-each</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">@*</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e161">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">xmlverb-attrs</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">for-each</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e164">choose</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e166">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">node()</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e168">text</a></span>&gt;<span class="xmlverb-text">&amp;gt;</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e171">apply-templates</a></span> <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e173">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-elements</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-elements</span>" /&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e175">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">concat($indent, $indent-increment)</span>" /&gt;<span class="xmlverb-text"><br />
              </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e177">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">indent-increment</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent-increment</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">apply-templates</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e180">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">* and $indent-elements</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-name"><a name="d29e182">br</a></span> /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e184">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$indent</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e187">text</a></span>&gt;<span class="xmlverb-text">&amp;lt;/</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e190">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">$ns-prefix != ''</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-name"><a name="d29e192">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-element-nsprefix</span>"&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e194">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$ns-prefix</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e197">text</a></span>&gt;<span class="xmlverb-text">:</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d29e202">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-element-name</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e204">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">local-name()</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e207">text</a></span>&gt;<span class="xmlverb-text">&amp;gt;</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e211">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e213">text</a></span>&gt;<span class="xmlverb-text"> /&amp;gt;</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e218">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">not(parent::*)</span>"&gt;&lt;<span class="xmlverb-element-name"><a name="d29e219">br</a></span> /&gt;&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e220">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> attribute nodes </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e227">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">xmlverb-attrs</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e229">text</a></span>&gt;<span class="xmlverb-text"> </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e232">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-attr-name</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e234">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">name()</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e237">text</a></span>&gt;<span class="xmlverb-text">="</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e240">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-attr-content</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e242">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">html-replace-entities</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e244">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">normalize-space(.)</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e246">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">attrs</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">true()</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e250">text</a></span>&gt;<span class="xmlverb-text">"</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> namespace nodes </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e256">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">xmlverb-ns</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e258">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">name()!='xml'</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e260">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-ns-name</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e262">text</a></span>&gt;<span class="xmlverb-text"> xmlns</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e265">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">name()!=''</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e267">text</a></span>&gt;<span class="xmlverb-text">:</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e271">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">name()</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e274">text</a></span>&gt;<span class="xmlverb-text">="</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e277">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-ns-uri</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e279">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">.</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e282">text</a></span>&gt;<span class="xmlverb-text">"</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> text nodes </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e289">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">text()</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e291">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-text</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e293">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">preformatted-output</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e295">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e297">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">html-replace-entities</span>"&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e299">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">.</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">with-param</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> comments </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e309">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">comment()</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e311">text</a></span>&gt;<span class="xmlverb-text">&amp;lt;!--</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e314">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-comment</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e316">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">preformatted-output</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e318">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">.</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e322">text</a></span>&gt;<span class="xmlverb-text">--&amp;gt;</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e325">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">not(parent::*)</span>"&gt;&lt;<span class="xmlverb-element-name"><a name="d29e326">br</a></span> /&gt;&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e327">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> processing instructions </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e333">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">processing-instruction()</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e335">text</a></span>&gt;<span class="xmlverb-text">&amp;lt;?</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d29e338">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-pi-name</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e340">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">name()</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e343">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">.!=''</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e345">text</a></span>&gt;<span class="xmlverb-text"> </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d29e348">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-pi-content</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e350">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">.</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e354">text</a></span>&gt;<span class="xmlverb-text">?&amp;gt;</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e357">if</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">not(parent::*)</span>"&gt;&lt;<span class="xmlverb-element-name"><a name="d29e358">br</a></span> /&gt;&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e359">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">if</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> =========================================================== </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;!--<span class="xmlverb-comment">                    Procedures / Functions                   </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;!--<span class="xmlverb-comment"> =========================================================== </span>--&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> generate entities by replacing &amp;, ", &lt; and &gt; in $text </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e372">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">html-replace-entities</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e374">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e376">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">attrs</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e378">variable</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">tmp</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e380">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e382">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;gt;'</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e384">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;amp;gt;'</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e386">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e388">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e390">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;lt;'</span>" /&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e392">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;amp;lt;'</span>" /&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e394">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>"&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e396">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
                        </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e398">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;amp;'</span>" /&gt;<span class="xmlverb-text"><br />
                        </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e400">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;amp;amp;'</span>" /&gt;<span class="xmlverb-text"><br />
                        </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e402">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$text</span>" /&gt;<span class="xmlverb-text"><br />
                     </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
                  </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">with-param</span>&gt;<span class="xmlverb-text"><br />
               </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">with-param</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">variable</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e410">choose</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;!--<span class="xmlverb-comment"> $text is an attribute value </span>--&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e414">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">$attrs</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e416">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e418">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">' '</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e420">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;amp;#xA;'</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e422">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>"&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e424">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e426">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;quot;'</span>" /&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e428">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'&amp;amp;quot;'</span>" /&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e430">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$tmp</span>" /&gt;<span class="xmlverb-text"><br />
                  </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
               </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">with-param</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e436">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e438">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$tmp</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> replace in $value substring $from with $to </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e445">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e447">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e449">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e451">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e453">choose</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e455">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">contains($value,$from)</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e457">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">substring-before($value,$from)</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e459">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$to</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e461">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e463">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">substring-after($value,$from)</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e465">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$from</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e467">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$to</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e471">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e473">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$value</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> preformatted output: space as &amp;nbsp;, tab as 8 &amp;nbsp;<br />
                             nl as &lt;br&gt; </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e480">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">preformatted-output</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e482">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e484">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">output-nl</span>"&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e486">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e488">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">replace-substring</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e490">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">value</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">translate($text,' ',' ')</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e492">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">from</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">' '</span>" /&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e494">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">to</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'        '</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">with-param</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> output nl as &lt;br&gt; </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e503">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">output-nl</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e505">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e507">choose</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e509">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">contains($text,' ')</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e511">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">substring-before($text,' ')</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d29e513">br</a></span> /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e515">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e518">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">output-nl</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e520">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">substring-after($text,' ')</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e524">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d29e526">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$text</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">stylesheet</span>&gt;<br />
</div>
</tt><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />v
         </body></html>
